package com.snaildesign.countdown.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="USER_INFO"
 *     
*/
public class UserInfo implements Serializable {

    /** identifier field */
    private String userId;

    /** nullable persistent field */
    private String userName;

    /** nullable persistent field */
    private String userPass;

    /** nullable persistent field */
    private String nickName;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String remarks;

    /** persistent field */
    private Set userTags;

    /** persistent field */
    private Set advices;

    /** persistent field */
    private Set countDownComments;

    /** persistent field */
    private Set myCountDowns;

    /** persistent field */
    private Set favorites;

    /** full constructor */
    public UserInfo(String userId, String userName, String userPass, String nickName, String email, String remarks, Set userTags, Set advices, Set countDownComments, Set myCountDowns, Set favorites) {
        this.userId = userId;
        this.userName = userName;
        this.userPass = userPass;
        this.nickName = nickName;
        this.email = email;
        this.remarks = remarks;
        this.userTags = userTags;
        this.advices = advices;
        this.countDownComments = countDownComments;
        this.myCountDowns = myCountDowns;
        this.favorites = favorites;
    }

    /** default constructor */
    public UserInfo() {
    }

    /** minimal constructor */
    public UserInfo(String userId, Set userTags, Set advices, Set countDownComments, Set myCountDowns, Set favorites) {
        this.userId = userId;
        this.userTags = userTags;
        this.advices = advices;
        this.countDownComments = countDownComments;
        this.myCountDowns = myCountDowns;
        this.favorites = favorites;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="USER_ID"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="USER_NAME"
     *             length="50"
     *         
     */
    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 
     *            @hibernate.property
     *             column="USER_PASS"
     *             length="20"
     *         
     */
    public String getUserPass() {
        return this.userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    /** 
     *            @hibernate.property
     *             column="NICK_NAME"
     *             length="30"
     *         
     */
    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /** 
     *            @hibernate.property
     *             column="EMAIL"
     *             length="50"
     *         
     */
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /** 
     *            @hibernate.property
     *             column="REMARKS"
     *             length="200"
     *         
     */
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="USER_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.UserTag"
     *         
     */
    public Set getUserTags() {
        return this.userTags;
    }

    public void setUserTags(Set userTags) {
        this.userTags = userTags;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="USER_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.Advice"
     *         
     */
    public Set getAdvices() {
        return this.advices;
    }

    public void setAdvices(Set advices) {
        this.advices = advices;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="USER_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.CountDownComment"
     *         
     */
    public Set getCountDownComments() {
        return this.countDownComments;
    }

    public void setCountDownComments(Set countDownComments) {
        this.countDownComments = countDownComments;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="USER_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.MyCountDown"
     *         
     */
    public Set getMyCountDowns() {
        return this.myCountDowns;
    }

    public void setMyCountDowns(Set myCountDowns) {
        this.myCountDowns = myCountDowns;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="USER_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.Favorite"
     *         
     */
    public Set getFavorites() {
        return this.favorites;
    }

    public void setFavorites(Set favorites) {
        this.favorites = favorites;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("userId", getUserId())
            .toString();
    }

}
